<div class="content-wrapper">
    <section class="content-header">
        <h1>订单详情</h1>
        <ol class="breadcrumb">
            <li><a href="/admin"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">订单管理</li>
            <li class="active"><a href="/admin/Order/orderList">列表</a></li>
            <li class="active">订单详情</li>
        </ol>
    </section>
    <section class="content">
        <div class="box">
            <div class="box-header with-border">
            </div>
            <div class="box-body">
                <form class="form-horizontal" role="form" action="javascrip:;" method="post">
                    <input type="hidden" name="id" id="id" value="{$orderInfo.id}" />
                    <div class="form-group">
                        <label for="create_time" class="col-sm-4 control-label">下单时间： </label>
                        <div class="col-sm-6">
                            <p id="create_time" class="text text-black">{$orderInfo['create_time']|date='Y年m月d日 H:i',###}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="admin_name" class="col-sm-4 control-label">部门人员： </label>
                        <div class="col-sm-6">
                            <p id="admin_name" class="text text-black">{$orderInfo.admin_name}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="order_code" class="col-sm-4 control-label">订单编号： </label>
                        <div class="col-sm-6">
                            <p id="order_code" class="text text-black">{$orderInfo.order_code}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="department_name" class="col-sm-4 control-label">部门： </label>
                        <div class="col-sm-6">
                            <p id="department_name" class="text text-black">{$orderInfo.department_name}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="protocol_number" class="col-sm-4 control-label">协议号： </label>
                        <div class="col-sm-6">
                            <p id="protocol_number" class="text text-black">{$orderInfo.protocol_number}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="is_pay" class="col-sm-4 control-label">是否到款： </label>
                        <div class="col-sm-6">
                            <p id="is_pay" class="text text-black">{$orderInfo['is_pay'] == 1 ? '是' : '否'}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="company" class="col-sm-4 control-label">终端客户名称： </label>
                        <div class="col-sm-6">
                            <p id="company" class="text text-black">{$orderInfo.company}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="name" class="col-sm-4 control-label">联系人： </label>
                        <div class="col-sm-6">
                            <p id="name" class="text text-black">{$orderInfo.name}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="amount" class="col-sm-4 control-label">支付金额： </label>
                        <div class="col-sm-6">
                            <p id="amount" class="text text-black">{$orderInfo.amount}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="pay_interval" class="col-sm-4 control-label">账期： </label>
                        <div class="col-sm-6">
                            <p id="pay_interval" class="text text-black">
                                <if condition="$orderInfo.pay_interval eq 0">
                                    一星期
                                    <else />
                                    {$orderInfo.pay_interval}个月
                                </if>
                            </p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="company_name" class="col-sm-4 control-label">公司名（代理商）： </label>
                        <div class="col-sm-6">
                            <p id="company_name" class="text text-black">{$orderInfo.company_name}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="mobile" class="col-sm-4 control-label">联系方式： </label>
                        <div class="col-sm-6">
                            <p id="mobile" class="text text-black">{$orderInfo.mobile}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="product_name" class="col-sm-4 control-label">项目： </label>
                        <div class="col-sm-6">
                            <p id="product_name" class="text text-black">{$orderInfo.product_name}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="quoted_price" class="col-sm-4 control-label">销售金额 </label>
                        <div class="col-sm-6">
                            <p id="quoted_price" class="text text-black">{$orderInfo.quoted_price}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="rebate" class="col-sm-4 control-label">客户享受返点 </label>
                        <div class="col-sm-6">
                            <p id="rebate" class="text text-black">{$orderInfo.rebate}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="remark" class="col-sm-4 control-label">备注 </label>
                        <div class="col-sm-6">
                            <textarea name="remark" id="remark" class="form-control" disabled readonly>
                                {$orderInfo.remark}
                            </textarea>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </section>
</div>
